<?php
namespace app\admin\validate;

use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
        "id" => 'require',
        "control" => 'require|in:0,1,-1',
    ];

    protected $message = [
        "id.require" => "缺少id",
        "control.require" => "确少设置值",
        "control.in" => "设置值错误",
    ];

    protected $scene = [
        'set'=>['id','control'],
    ];
}